Admin = {
	//確認付款完成
	withdrawCompleted:function(tid, button){
		if(!tid){
			return;
		}
		Message.show("msg-withdraw-completed-processing", 400, "系統處理中", Ajax.loadingImg);
		Ajax.sendRequest(
			"post", "/exe/admin/WithdrawCompleted", "id=" + tid, true,
			function(req){
				Message.hide("msg-withdraw-completed-processing");
				var result = req.getResponseHeader("result");
				if(result == "true"){
					Message.show("msg-withdraw-completed-result", 400, "處理成功", result, Message.BUTTON_OK);
					button.disabled = "disabled";
					button.className = "button green";
				}else{
					Message.show("msg-withdraw-completed-result", 400, "處理失敗", result, Message.BUTTON_OK);
				}
			}
		);
	},
	//審閱申訴
	abuseReportProcessed:function(rid, button){
		if(!rid){
			return;
		}
		Message.show("msg-abuse-report-processed-processing", 400, "系統處理中", Ajax.loadingImg);
		Ajax.sendRequest(
			"post", "/exe/admin/AbuseReportProcessed", "id=" + rid, true,
			function(req){
				Message.hide("msg-abuse-report-processed-processing");
				var result = req.getResponseHeader("result");
				if(result == "true"){
					Message.show("msg-abuse-report-processed-result", 400, "處理成功", result, Message.BUTTON_OK);
					button.disabled = "disabled";
					button.className = "button green";
				}else{
					Message.show("msg-abuse-report-processed-result", 400, "處理失敗", result, Message.BUTTON_OK);
				}
			}
		);
	}
};